// task.js
const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const taskSchema = new Schema({
   userId:{type:String,required:false},
   content: { type: String, required: false },
   timestamp: { type: String, required: false },
   status: { type: String, required: false },
   level: { type: String, required: false },
   taskSender:{type:String,required:false},
   createdAt: { type: Date, default: Date.now },
   updatedAt: { type: Date, default: Date.now }
});

const Task = mongoose.model('Task', taskSchema);

module.exports = Task;
